const pageRoutes = [
  {
    path: "/login",
    component: "../layouts/UserLayout",
    routes: [
      {
        name: "login",
        path: "/login",
        component: "./login"
      }
    ]
  },
  {
    path: "/",
    component: "../layouts/SecurityLayout",
    routes: [
      {
        path: "/",
        component: "../layouts/BasicLayout",
        // authority: ['admin', 'user'],
        routes: [
          {
            path: "/",
            redirect: "/welcome"
          },
          {
            path: "/welcome",
            name: "欢迎页",
            component: "./welcome",
            hideInMenu: true
          },
          {
            path: "/userManagement",
            name: "用户管理",
            icon: "user",
            routes: [
              {
                path: "/userManagement/user",
                name: "个人用户",
                component: "./userManagement/user"
              },
              {
                path: "/userManagement/user/details",
                name: "个人用户详情",
                component: "./userManagement/user/details",
                hideInMenu: true
              },
              {
                path: "/userManagement/company",
                name: "企业用户",
                component: "./userManagement/company"
              },
              {
                path: "/userManagement/company/account",
                name: "账号管理",
                component: "./userManagement/company/account",
                hideInMenu: true
              },
              {
                path: "/userManagement/company/department",
                name: "部门管理",
                component: "./userManagement/company/department",
                hideInMenu: true
              }
            ]
          },
          {
            path: "/taskManagement",
            name: "任务管理",
            icon: "area-chart",
            component: "./taskManagement/jobList"
          },
          {
            path: "/taskManagement/fees",
            name: "费用管理",
            component: "./taskManagement/jobList/fees",
            hideInMenu: true
          },
          {
            path: "/taskManagement/createJob/:flag",
            name: "新增任务",
            component: "./taskManagement/createUpdateJob",
            hideInMenu: true
          },
          {
            path: "/taskManagement/updateJob/:flag",
            name: "编辑任务",
            component: "./taskManagement/createUpdateJob",
            hideInMenu: true
          },
          {
            path: "/taskManagement/userManage",
            name: "承揽方管理",
            component: "./taskManagement/userManage",
            hideInMenu: true
          },
          {
            path: "/taskManagement/userManage/jobReport",
            name: "进度汇报",
            component: "./taskManagement/jobReport",
            hideInMenu: true
          },
          {
            path: "/deposit",
            name: "押金管理",
            icon: "account-book",
            component: "./deposit"
          },
          {
            component: "./404"
          }
        ]
      },
      {
        component: "./404"
      }
    ]
  },
  {
    component: "./404"
  }
];

export default pageRoutes;
